package com.xmuexp.e09.model;

import java.util.Date;


public class Product implements VoObject {

    private ProductPo productPo;

    public Product(){this.productPo=new ProductPo();}

    public Product(ProductPo productPo){this.productPo=productPo;}

    public ProductPo getProductPo(){return this.productPo;}

    @Override
    public ProductRetVo createVo() {
        return new ProductRetVo(this);
    }

    public Integer getId() {
        return productPo.getId();
    }

    public Integer getGoodsId() {
        return productPo.getGoodsId();
    }

    public String getProductSn() {
        return productPo.getProductSn();
    }

    public String getName() {
        return productPo.getName();
    }

    public Integer getOriginalPrice() {
        return productPo.getOriginalPrice();
    }

    public Integer getWeight() {
        return productPo.getWeight();
    }

    public String getImageUrl() {
        return productPo.getImageUrl();
    }

    public Integer getState() {
        return productPo.getState();
    }

    public String getDetail() {
        return productPo.getDetail();
    }

    public Integer getDisabled() {
        return productPo.getDisabled();
    }

    public Date getGmtCreate() {
        return productPo.getGmtCreate();
    }

    public Date getGmtModified() {
        return productPo.getGmtModified();
    }

    public Integer getShareable() {
        return productPo.getShareable();
    }

    public void setId(Integer id) {
        productPo.setId(id);
    }

    public void setGoodsId(Integer goodsId) {
        productPo.setGoodsId(goodsId);
    }

    public void setProductSn(String productSn) {
        productPo.setProductSn(productSn);
    }

    public void setName(String name) {
        productPo.setName(name);
    }

    public void setOriginalPrice(Integer originalPrice) {
        productPo.setOriginalPrice(originalPrice);
    }

    public void setWeight(Integer weight) {
        productPo.setWeight(weight);
    }

    public void setImageUrl(String imageUrl) {
        productPo.setImageUrl(imageUrl);
    }

    public void setState(Integer state) {
        productPo.setState(state);
    }

    public void setDetail(String detail) {
        productPo.setDetail(detail);
    }

    public void setDisabled(Integer disabled) {
        productPo.setDisabled(disabled);
    }

    public void setGmtCreate(Date gmtCreate) {
        productPo.setGmtCreate(gmtCreate);
    }

    public void setGmtModified(Date gmtModified) {
        productPo.setGmtModified(gmtModified);
    }

    public void setShareable(Integer shareable) {
        productPo.setShareable(shareable);
    }

    private Goods goods;

    public void setGoods(Goods goods){
        this.goods=goods;
    }
    public Goods getGoods(){return this.goods;}

    @Override
    public int hashCode() {
        return productPo.hashCode();
    }

    @Override
    public String toString() {
        return productPo.toString();
    }

    @Override
    public boolean equals(Object o) {
        return productPo.equals(((Product)o).productPo);
    }
}
